﻿using Microsoft.EntityFrameworkCore;
using RBAC.Domain;

namespace RBAC.Interstructrue
{
    public class RBACDbContext : DbContext
    {
        public RBACDbContext(DbContextOptions options) : base(options)
        {
        }

        protected RBACDbContext()
        {
        }
        public DbSet<UserModel> Users { get; set; }
        public DbSet<RoleModel> Roles { get; set; }
        public DbSet<PermissionModel> Permissions { get; set; }
        public DbSet<UserRoleModel> UserRoles { get; set; }
        public DbSet<RolePermissionModel> RolePermissions { get; set; }
    }
}
